<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	template="/templates/modeloSistema.xhtml">
<ui:define name="menu">
		<ui:include src="/includes/menuPrincipal.xhtml" />
	</ui:define>

	<ui:define name="conteudo">

		<f:event listener="#{MBSenha.carregarCadastro}" type="preRenderView" />

		<!-- Inicio do DataTable -->

		<h:form prependId="false" id="frmSenhaListagem">
			<p:dataTable id="tblSenhaListagem" widgetVar="tabelaSenhaListagem"
				value="#{MBSenha.senha}" var="senha"
				emptyMessage="Nenhum registro encontrado." paginator="true" rows="5"
				rowsPerPageTemplate="5,10,15,20"
				filteredValue="#{MBSenha.senhaFiltrada}">

				<f:facet name="header">
					<h:outputText value="Senhas Retiradas" />
				</f:facet>

				<p:column headerText="Código" filterBy="#{senha.codigo}"
					sortBy="#{senha.codigo}">
					<h:outputText value="#{senha.codigo}" />
				</p:column>

				<p:column headerText="Data Emissão" filterBy="#{senha.dataRetirada}"
					sortBy="#{senha.dataRetirada}">
					<h:outputText value="#{senha.dataRetirada}" />
				</p:column>

				<p:column headerText="Horário Emissão" filterBy="#{senha.horaRetirada}"
					sortBy="#{senha.horaRetirada}">
					<h:outputText value="#{senha.horaRetirada}" />
				</p:column>
	
			</p:dataTable>
		</h:form>

	</ui:define>
</ui:composition>